package com.boot.mgt.service

import com.boot.core.result.ResultTo

import com.boot.mgt.model.TaRoadRepair
import com.boot.mgt.model.TaRoadRepairImage
import com.googlecode.jsonrpc4j.JsonRpcService


/**
 * xiaying
 *
 *  路段维护
 */
@JsonRpcService("roadRepair")
interface RoadRepairService {

    // 查找事故信息列表
    fun list(roadName:String?,createTime_begin:String?, createTime_end:String?): ResultTo


    fun addRoad(taRoadRepair: TaRoadRepair): ResultTo

    fun editRoadXia(taRoadRepair: TaRoadRepair): ResultTo
    fun editRoad(taRoadRepair: TaRoadRepair): ResultTo

    fun detail(roadId: Int): ResultTo

    fun delete(roadId: Int): ResultTo

    fun getImgList(page_index: Int, page_size: Int,roadId: Int): ResultTo

    fun uploadImg(policeNum:String,roadId:Int,imgList: Array<String>): ResultTo

    fun uploadOneImg(policeNum:String,roadId:Int,img: String): ResultTo

    fun delImg(id:Int):ResultTo
}